import request from "@/utils/request";

export const getDeviceTypeList = (data) => {
  return request({
    url: "/intra/iot/devicetype/browse",
    method: "get",
    params: data,
  });
};
export const delDeviceType = (data) => {
  return request({
    url: "/intra/iot/devicetype/delete",
    method: "delete",
    data,
  });
};
export const getDeviceTypeDetailById = (id) => {
  return request({
    url: `/intra/iot/devicetype/detail/${id}`,
    method: "get",
  });
};
export const saveDeviceType = (data) => {
  return request({
    url: `/intra/iot/devicetype/submit`,
    method: "post",
    data,
  });
};
export const getEmptyByType = (data) => {
  return request({
    url: `/intra/monitor/monitordevice/getEmptyByType`,
    method: "get",
    params: data,
  });
};
